package com.uah;

import com.scraper.Link;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Spinner;
import android.widget.TableLayout;

public class Colleges extends Activity {
	Spinner collegesMenu;
	TableLayout collegesTableLayout;
	
	//Hardcoded links for each college main page
	//Currently not used
	Link item1 = new Link("http://www.uah.edu/cba", "Business Administration");
	Link item2 =new Link("http://www.uah.edu/eng", "Engineering");
	Link item3 =new Link("http://www.uah.edu/graduate/welcome", "Graduate Studies");
	Link item4 =new Link("http://www.uah.edu/la", "Liberal Arts");
	Link item5 =new Link("http://www.uah.edu/nursing/welcome", "Nursing");
	Link item6 =new Link("http://www.uah.edu/science", "Science");
	
	Link[] collegesLinks={item1, item2, item3, item4, item5, item6};
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.page2);
	    
	    collegesTableLayout = (TableLayout) findViewById(R.id.page2TableLayout);
	    
	    // Populate layout
	    for (Link collegeLink : collegesLinks){
	    	DynamicLayoutCreation.createNewRow(collegeLink,"page2colleges::",collegesTableLayout, this);
		}
	}
}
